class MusicSerializer < ActiveModel::Serializer
  attributes :id,:title,:length,:url
  belongs_to :album
  has_many :singers

  link :self do
    href "http://kenton.wang/musics/#{object.id}"
  end
end
